package dev.caobaoqi6040.backend.modules.ai.controller;

import dev.caobaoqi6040.backend.modules.ai.domain.response.MCPToolINFOVo;
import dev.caobaoqi6040.backend.modules.ai.service.MCPService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * MCPController
 *
 * @author caobaoqi6040
 * @since 2025/10/9 16:15
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/ai/mcp")
public class MCPController {

	private final MCPService service;

	@GetMapping
	public ResponseEntity<List<MCPToolINFOVo>> list() {
		List<MCPToolINFOVo> tools = service.listTool();
		return ResponseEntity.ok(tools);
	}

}
